package com.galaxy.service.dto.system.resource;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 查询用户权限dto
 * @author caijinbang
 * @date 2018/10/27 18:15
 */
@Data
public class QueryPermissionDto {

    @NotBlank(message = "资源名称不能为空")
    private String name;

    private String parentId;

    @NotNull(message = "资源类型不能为空")
    private Short type;

    @NotBlank(message = "资源链接不能为空")
    private String url;

    private String color;

    private String permission;

    private String icon;

    @NotNull(message = "资源排序不能为空")
    private Long sort;

    private Boolean verification = true;

}
